/**
 * Filename: YNUser.java
 *
 * @author Firefly
 * @contact postfirefly@163.com
 * @time 2016/3/1 10:24
 */
package com.github.postsanf.yinian.bean;

/**
 * 用户
 */
public class YNUser extends BaseBean {
    private int userid;                                        // ID
    private String unickname;                                    // 昵称
    private String noteName = "";                                    // 备注名
    private String upic = "";                                        // 头像
    private String usex;                                        // 性别
    private String ubackground;                                    // 背景图
    private String ubirth;                                        // 生日
    private int isBindWechat;                                // 是否绑定微信
    private String password;

    public String getNoteName() {
        return noteName;
    }

    public void setNoteName(String noteName) {
        this.noteName = noteName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getIsBindWechat() {
        return isBindWechat;
    }

    public void setIsBindWechat(int isBindWx) {
        this.isBindWechat = isBindWx;
    }

    public String getUbirth() {
        return ubirth;
    }

    public void setUbirth(String ubirth) {
        this.ubirth = ubirth;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getUnickname() {
        if (unickname == null)
            return "";
        return unickname;
    }

    public void setUnickname(String unickname) {
        this.unickname = unickname;
    }

    public String getUpic() {
        if (upic == null)
            return "";
        return upic;
    }

    public void setUpic(String upic) {
        this.upic = upic;
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex;
    }

    public String getUbackground() {
        return ubackground;
    }

    public void setUbackground(String ubackground) {
        this.ubackground = ubackground;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof YNUser) {
            return this.userid == ((YNUser) o).userid;
        }
        return super.equals(o);
    }
}